package com.ctg.payroll2.dao.xlsImport.imp;

import com.ctg.payroll2.bean.po.ExcelpublicDetail;
import com.ctg.payroll2.dao.xlsImport.ExcelPublicDetailDAO;
import com.ctg.platform.orm.ibatis.IbatisEntityDao;

@SuppressWarnings("unchecked")
public class IbatisExcelPublicDetailDAO extends
		IbatisEntityDao<ExcelpublicDetail> implements ExcelPublicDetailDAO {

	public Integer getNewId() {
		return (Integer) this.getSqlMapClientTemplate().queryForObject(
				"ImpXls.getNewId");
	}

	/**
	 * 根据exPublicId 删除publicDetail
	 * 
	 * @param obj
	 * @return Boolean 是否删除成功
	 */
	public Boolean deletepublicdetailByexPublicId(Object obj) {
		return getSqlMapClientTemplate().delete(
				"ExcelpublicDetail.deleteByExPublicId", (Integer) obj) > 0 ? true
				: false;
	}
}
